Changed to allow use of python standard logging. Minor tidy up. Closes gh-9