def METHOD_NAME(mgmt_uri):
	with open('/var/lib/mailinabox/api.key', 'r') as f:
		key = f.read().strip()
	auth_handler = urllib.request.HTTPBasicAuthHandler()
	auth_handler.add_password(
		realm='Mail-in-a-Box Management Server',
		uri=mgmt_uri,
		user=key,
		passwd='')
	opener = urllib.request.build_opener(auth_handler)
	urllib.request.install_opener(opener)