Fix typos in the code and the documentation
Support the installation of Python programs

Closes #144
Reorganise hierarchy of Python tests
Support installation of Python libraries with setuptools
Merge branch 'topic/script-python'