preparing for migration to a python core