Refactored to meet PEP8 (thank you Sublime Linter).