Possible memory leak in embedded Python interpreter

Valgrind indicates lots of lost memory in the embedded Python interpreter. Need to check if this is due to wrong use of the interpreter or due to faulty implementation of the interpreter itself.