Solves Problem 11 in Python and fixes documentation of common C++ functions