PEP8 fixes on convert_precision.py
Refactored run_tests.py to make it a bit more Pythonic.