SQL Parser in Python