Fixes incopatibility with python 2.6
Added a VHDL Hamming module for generic registers that are protected internally.