add RHEL6 compat, register_namespace doesn't exist in RHEL6

RHEL6/CentOS6 uses python 2.6 which doesn't contain the register_namespace function. Implemented helper function for backward compatibility.

*Thanks for all the hard work guys!*