The function clean_doi appears in both api.py and doi.py, with two different implementations. I can clean one up if there's a preferred version