Push And Pop Operation In Python