def freqency(cpu='cpu0'):
    """Retrieves the current CPU speed in MHz - for a single CPU"""
    return float(open('/sys/devices/system/cpu/%s/cpufreq/scaling_cur_freq' % cpu,'r').read().strip())/1000.0