[python-bindings] Export OpCode from core.py.