Cosm Python library