Data Structures Implementation In Python A Function