Split off data structures into a separate python module