Python port of Zach Holman's boom tool.