changed str type check in objects.py to isinstance w/ P2-P3 check