Removed redundecy and made PEP8 compliant.
Updated problem 13 solution to comply with PEP8.