adding setmode and show mode
Merge PR smbaker/pynest#10 by @abemassry

adding setmode and show mode