CLN: pep8 clean up of sql.py
Merge pull request #8340 from jorisvandenbossche/sql-pep8

CLN: pep8 clean up of sql.py