A binary search tree implementation in python