Removed excess code in lib.swig.setDefaults Issue #485

Discussed in Issue #485. Simple cleanup with passing tests.