Update AutoPermit.py

The progress bar should work now. The TML tab isn't ran in this version though.