oops, missing numpy import in patch.py