Nick's broken Python functions