Finished GOFile class, refactored threshold.py, wrote new helpers.