@classmethod
def parse_config(cls, peer_config):
    """
        Imports Peer from config.
        :param peer_config:
        :return:
        """
    instance = cls()
    instance._config['Peer'] = peer_config['Peer']
    for key, value in peer_config.items('Peer'):
        setattr(instance, key, value)
    return instance
