None is not comparable to bytes in Py3.