A 3D linear kalman filter written in c++ and python. On my computer the c++ is faster by ~4x. If you want a 2D filter, I imagine just passing in data where z components equal zero.
Read the setup text file to help get a python executable version.
Modeled from https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python