'get info from /proc/meminfo'

def get_mem(self, openr=open):

    meminfo = {}
    with openr('/proc/meminfo', 'r') as memlines:
        for i in memlines:
            entry = i.rstrip().split(':')
            meminfo[entry[0]] = entry[1].strip()
    return meminfo
