fix symbol export for Python
data structures and serialization