Reworked import of constants.py: Part 4

Next up: Patch modules. FFUUUUUUUUUUUUNNNNNNNNNNNNN.