bpo-34100: Merge constants recursively (GH-8341)



There are some same consts in a module.  This commit merges them into
single instance.  It reduces number of objects in memory after loading modules.


https://bugs.python.org/issue34100
6 files changed