Fixed Python34 bugs