Update formulas.py with PEP-8 style guidelines