Change underlying IO model to support future import & export features.
Align code style with published PEP Python code style.