for some reason TextWrangler wasn't displaying indentions properly. fixed using IDLE