Standard Python tricks:modifying a file in place | Hacker News Reader