Update cancel.py

patched code to fix 'User' import error in gunicorn setup