Creates UCS Manager handle object and establishes a session with 
        UCS Manager.
        :param hostname: UCS Manager hostname or IP-address
        :param username: Username to login to UCS Manager
        :param password: Login user password
	:raises UcsConnectionError: In case of error.

def generate_ucsm_handle(hostname, username, password):
    """ Creates UCS Manager handle object and establishes a session with 
        UCS Manager.
        :param hostname: UCS Manager hostname or IP-address
        :param username: Username to login to UCS Manager
        :param password: Login user password
	:raises UcsConnectionError: In case of error.
	"""
    ucs_handle = UcsHandle()
    try:
        success = ucs_handle.Login(hostname, username, password)
    except UcsException as e:
        print("Cisco client exception %(msg)s" % (e.message))
        raise exception.UcsConnectionError(message=e.message)
    return success, ucs_handle