Python 3 compatibility support (3.4+)