Python Magic Scheme of Work