def METHOD_NAME(fo, *keys):
    # Parse human readable proc format
    data = dict()
    for line in fo:
        key, value = line.split(':')
        if keys and key not in keys:
            continue
        value = value.strip()
        if value.endswith(' kB'):
            value = int(value[:-3]) * 1024
        try:
            value = int(value)
        except ValueError:
            pass
        data[key] = value
    return data