py: Fix overriding of default arguments.

Addresses issue #327.