Fix bugs in last commit, make pyro debug and screen open configurable via config.py
Merge commit 'b95584d89e0d2a04380a51de35a8c1cf797d1da8'