refactored outbuffer module to be in-compliance with PEP-8.