There are a couple of PEP8 issues here - top level objects in a module should have 2 newlines between them, the docstring's leading line should be slightly more descriptive, no need for a newline after the docstring, spaces after commas needed, excessive new lines in the function itself.