Mysql Create Array Variable Length In Python