marcook.py