def procdict(fname):
    """Returns a dictionary of key-values from the given file.
    These are in `/proc` format::
        key:[\t]*value
    """
    d = dict(l.strip().split(':', 1) for l in open(fname))
    for k in d:
        d[k] = d[k].strip()
    return d