Extension for gathering stats from flask applications