Python memory management

shape