moving resources
some refactoring of py bindings