Anki's Python library code is in anki/. The Rust/Python extension module is in rsbridge/; it references the library defined in ../rslib.