Improve compatibility.py
Development version