Fix newer pylint's E0611 error in compat.py