Use logging module in place of print statements
Add support for member list replacement