use logging instead of printing to stderr

printing to stderr makes test output harder to read. using the logging module instead fixes this and also allows the developer to control if and when the zerorpc errors are printed.