fixing python 3 kwarg bug