fix error with magnify.py example