env.sh

A few changes to the python module and add env.sh.