fix 'ValueError: zero length field name in format' under py26
add input_wrapper() function to handle py3 switch from raw_input() to input()
WIP trying to get write() test mock of open working for py33
fixes #7 - use mock_open, tests now pass py27 and py33