Fix support on Python < 3.4