"append line ""cool beans..."" to file ""foo""","with open('foo', 'a') as f: