Create lexconvert.py

From http://people.ds.cam.ac.uk/ssb22/gradint/lexconvert.py