implement a wrapper for ast.parse() that strips CRs and adds newlines