Measure memory latency in about 50 lines of python