Json Array From String In Python Function