Python Define Variable Type In Function In Sql