Py3 compatible winreg import and content-type access