added io.py to handle conversion from strings