Remove code duplications between converter2 and 3

Create single `converter.py` compatible with multi version to remove code duplications between `converter2.py` and `converter3.py`.