Updated convert.py to new file format