Python: Memory allocation usage and adjustments measured