Bindings refactored

This PR was created to simplify #1579 . Its objective is prepare bindings folder to build extensions using setuptools.