Compatibility with Python 2 & Python 3 #2