check out ```functools.partial```, which aside from being generally awesome, could help you eliminate the above two lines and do it all right here in a clean way.