Add model for page change checks
Better Python style re spaces/tabs