Add stubs for Python 3 implementation