Fix Travis config to run deploy action only for Python 2.6
Refactor main program body into a function
Use setuptools entry points feature for script creation, change version to 0.03