Python implementation of data structures.