Python Define Variable Type In Function Sql