removed a trailing semicolon placed by mistake in functional.py and reformatted it for PEP8 compliance.