eliminate use of message property of Exception
now supports Python 2.6
improve parameter validation and help
improve error handling