Should mention that filename is optional here or remove the keyword argument.  In this specific instance, removing the kwarg might be better since it is more likely that the user will have to enter a value.