added compatibiliy module (Python3 and PyPy)