Python port of market-research.js from Stanford's Startup Engineering Coursera Course