Added Python serializer generation.