python/binarytree: added prototype deletion, proper unittesting