Port to Python 3 (3.3 and 3.4 compatible)