Fix pyPEG and _compat.py bug