reorganizing python bindings