Python computer science data structures