make compilable again

This patch makes the code compilable on modern systems by making the makefile independent of the python version.
Furthermore the improved .gitignore ignores all files created on "make".