Python 3 compatibility - only 3.3 and 3.4