move python code to external module
reorganise python scripts into directory
basic tests
nosetests