Moved python script from Data directory to source directory

Several option values have changed.
Log messages are left in detail.
Commandline templates are changed.
Major refactoring is in progress.