MTG Python scripts