Improvements to demo.py script.
Signed-off-by: Suchi Raman <suchi.raman@plexxi.com>