Its happened to a friends female i know that passed same thing in the shape of soggie wet eggs. The female was never bred but passed them anyways as any female snake can pass eggs.

But if its a male i would take that substance and get it tested.