Implementation in Python of a few data structures