I was using pdbfixer and found that some modified aminoacid-canonical aminoacid pairs were missing in the "substitution" dictionary. This threw errors when trying to run it. I fixed it just by adding these 3 to the dictionary in the pdbfixer.py:
'MLY': 'LYS'
'M3L': 'LYS'
'MLZ': 'LYS'