consolidating pystr testcases