Python implementation of common market research tasks