Python Get Array From String In Python Function