Python Push And Pop Operation