Python module for macromolecular structures