Shouldn't this be  't.keys(None, None)'?