critical bugfix for python sdk and update comments to properly reflect filename

forgot a paren when checking for IsActive() leading the program to fail
horribly.