@staticmethod
def read_aliases(alfile):
    """Read aliases map from given file"""
    if alfile is None:
        return {}
    almap = {}
    with open(alfile, 'r') as fd:
        for line in fd:
            alias, token = line.strip().split()[0:2]
            almap[alias] = token
    return almap
