Completed working Python, Cython, and C++ codes