Machine code disassembly and IR translation library for Python using the excellent SLEIGH library from the Ghidra framework.
This library was created primarily for use with angr, which provides analyses and symbolic execution of p-code.
Documentation covering how to install and use pypcode is available here.