Two Stack Coding Questions For Python