'Return the local machine identity.
Output: dict'

def get_server_identity(self):

    identity = self.get_local_server_identity(output_format='xml')
    try:
        xml_head = identity.getElementsByTagName('MediaContainer')
    except Exception as e:
        logger.warn((u'PlexPy    Pmsconnect    ::    Unable    to    parse    XML    for    get_local_server_identity:    %s.' % e))
        return {}
    server_identity = {}
    for a in xml_head:
        server_identity = {'machine_identifier': helpers.get_xml_attr(a, 'machineIdentifier'), 'version': helpers.get_xml_attr(a, 'version')}
    return server_identity
