Lets say I have a string
s="""
print 'hi'
    print 'hi'
print 3333/0
"""
Is there a module or way that can help me check the syntax of this string?
I would like the output to be like:
Line 2, indentation Line 3, Division by Zero
I have heard of pyFlakes, pyChecker and pyLint but those check a file, not a string.

""" """if you want the string to span over multiple lines.