This file has no comments. I think it should at least have one-line summary docstrings for the functions in here. I can read through the function to figure out what it's doing, but it's a lot easier if it told me what it was intended for.