Use functools.wraps in decorator

* This will ensure that the func_name/doc strings is correct across py versions
* Fixes issue #2
Merge pull request #5 from toddsifleet/tws-fix-issue-2

Use functools.wraps in decorator