Removing print statements from webgateway/util.py