add support for Python style long strings and clean up default class __tostring