adapted E545 for python3