add trilateration function to misc.py
formatting cleanups
cleanup handling of None tests
cleanup type handling
gl organization cleanups
cleanup gamma organization
cleanup imports
derpacate the getMsPerFrame function in favor of the corresponding visual.Window method