The most important Python script I ever wrote