debugging guest checkin error due to python globals behavior