Fix python3.4 compatibility issue