Implement Push And Pop In Python