now doing in-python compare rather than string compare