run tests against python3.4
Add python3.4 compatibility layer