Refactor 'convert.py' #10