How To Change Array Into List In Python Definition Function