@@ -0,0 +1,319 @@
+from __future__ import (%0A    print_function, division, absolute_import, unicode_literals)%0A%0A%0Atry:%0A    basestring = basestring%0Aexcept NameError:%0A    basestring = str%0A%0A%0Adef tobytes(s, encoding='ascii', errors='strict'):%0A    if not isinstance(s, bytes):%0A        return s.encode(encoding, errors)%0A    else:%0A        return s%0A

add Python 2/3 compatibility layer (similar to fontTools)