Fix, move pass to end of function.  Fix, add missing ().  Add better debugging strings.
Replace tabs with spaces in order to reduce potential unwanted behavior because of nesting rules in python.
Merge pull request #1 from Niarfe/master

Fix, moved pass to end of function. Fix missing () in function call.  Formatting changes, removed tabs for spaces.