Improved create_makefile.py