A more interesting path is to keep dbscan_inner in pure python with type annotations and then use
py2many --mojo=1 dbscan_inner.py
to translate.Somehow just trying to navigate to this website makes my browser crash.
Firefox on Android with NoScript.