How To Convert An Array To A List In Python