PEP8 compliant deterministic.py file, all tests passed