the main script

Should be run from command line
Tested on windows 7 x64 using 2.7.3