fixed strtypes (digits) for python 2. fixes #7