Implementation of Queue with Two Stacks in Python