Update to support Python 3, remove logging