Line-by-line memory usage of a Python program