Implementing the most common data stractures in Python