correctly detect Python binary. improve logging.