PEP8 issue. Please add a blank line before (and possibly after?) the function definition.