Order the imports alphabethically
Use a dict instead of a list for the replacements

Funny how you can have code like this for years and not realize what's
wrong with it…