Add a docstring that says what this function does, and what all of the parameters mean. This is a good how-to for python docstrings: https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt