Move comments inline. (As recommended by PEP-8.)
Fix typo: denomiator -> denominator
Remove unused variable.
Move imports to top. Remove unused import.