Sql Set With Select Statement In Python