reorganized files and modifed the python script for use with apache fastcgi