fix file mode (now really), mode "w+bx" is undocumented for py 2.x and broken on 3.3/3.4