data model refactoring python binding