Ruby Parse String Into Array In Python