Code For Push And Pop In Python