Minor: could be written as ``name.lower() in ['x', 'y', 'z']``