adding fileio.py for easy conversion between json and csv