Turning Array Into List Python Functions