maxstock.py