demo.py: remove useless code