nativeChain.py copied to repo