Moved the different parts of the Python interface to separate directories