$ time ./isomorph_msq.py
(0, 1, 2, 3, 4, 5, 6, 7, 8)
(0, 3, 6, 1, 4, 7, 2, 5, 8)
(2, 1, 0, 5, 4, 3, 8, 7, 6)
(2, 5, 8, 1, 4, 7, 0, 3, 6)
(6, 3, 0, 7, 4, 1, 8, 5, 2)
(6, 7, 8, 3, 4, 5, 0, 1, 2)
(8, 5, 2, 7, 4, 1, 6, 3, 0)
(8, 7, 6, 5, 4, 3, 2, 1, 0)
cnt = 8
real 5m11.675s
user 5m11.904s
sys 0m0.861s
As for MSQ3 (magic squares of order 3, or 3×3 magic squares), it is widely known that there are 8 isomorph transformations: 4 patterns by rotation and 2 patterns by reflection. The number "8" matches to the one the program calculated, so we have proved that the 8 patterns are the all isomorph transformations for MSQ3!