CLN: pep8 clean up of sql.py