add helper function to make comparisons with python version easier