Changed the inve shell script to a python script, and other changes for win compatibility