Python-powered script for leagues and tournaments