Python treats tab characters as 8 spaces, but many text editors treat them as 4. Never mix tabs and spaces. The standard is to use four spaces, not tabs.
You've used spaces on every line except these two:
with open("harsh1.txt","w") as harsh1:
print >> harsh1, """hello"""
Those lines are indented with tabs. Replace them with spaces.