python mma script