If you create some objects and lost connection to these object, it doesn't means the object will be deallocated
# python3.5
import psutil
import os
def memory_profile():
print("The process consumes %.2f Megabytes\n" %
(psutil.Process(os.getpid()).memory_info().rss / float(1000 * 1000), ))