write mode666 for py2 and py3