Don't make it a keyword argument, that way you don't have to check that is it not none: it becomes mandatory.