Python Convert String Into Array Of Cabinets