fixed small ordering bug in Makefile/python script