Stack And Queue Implementation Using Python Dictionaries