Python Read Variable From Command In Sql