Fixed up the python scripts and a bugged makefile.