Now compatible with Python 2.7