I hope this saves you a couple hours of headaches that I experienced recently.
If you get the dreaded error:
from html5lib import sanitizer, serializer, treebuilders, treewalkers
ImportError: cannot import name sanitizer
Never fear. The fix is easy once you know how. Add this exact line to your requirements file and redeploy:
html5lib<0.99999999
This will fix it.