Python Insert Array Into Sql Query Formatter