fixed makefoil.py, organized