Note that with the patch applied you still can't pickle constants using
version 2 of the pickle protocol, only versions 0 and 1. I think that an
implementation of __getnewargs__ might be needed, though I'm in a bit
over my head with this stuff to be honest.