First version of convert.py