a few python3.4 compat changes