Python Array Assign Value To Variable In Sql