def chmod(path, mode, recursive=True):
if recursive:<EOL><INDENT>cmd = '<STR_LIT>' % (mode, path)<EOL><DEDENT>else:<EOL><INDENT>cmd = '<STR_LIT>' % (mode, path)<EOL><DEDENT>return sh(cmd)<EOL>
alternative to os.