serializer for literal Python expressions, also .NET and Java