This is a python extension module to access the frame stack. This only works with a custom python virtual machine which has bytecode tracing implemented.
See this blog post for the details: https://0xec.blogspot.com/2017/03/hacking-cpython-virtual-machine-to.html
Precompiled versions can be found in the releases section: https://github.com/extremecoders-re/pystack/releases