<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_maya_location(self, ):
 """ Return the installation path to maya :returns: path to maya :rtype: str :raises: errors.SoftwareNotFoundError """

        import _winreg
        # query winreg entry
        # the last flag is needed, if we want to test with 32 bit python!
        # Because Maya is an 64 bit key!
        for ver in MAYA_VERSIONS:
            try:
                key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,
                                      MAYA_REG_KEY.format(mayaversion=ver), 0,
                                      _winreg.KEY_READ | _winreg.KEY_WOW64_64KEY)
                value = _winreg.QueryValueEx(key, "MAYA_INSTALL_LOCATION")[0]
            except WindowsError:
                log.debug('Maya %s installation not found in registry!' % ver)
        if not value:
            raise errors.SoftwareNotFoundError('Maya %s installation not found in registry!' % MAYA_VERSIONS)
        return value