Pep8ify and add comment
Add failing test for sort and max_results