vis.py: Refactoring needs
From !52 (merged)
Reading this still gives me the heebie jeebies, but it looks much better.
If you feel like it you can:
- def main():
- if name == "main": main()
- move fetch_bug() and copytest() to the outer scope
- rename copytest() to copy_test_result() or something even more descriptive
- move arg parsing to its own function
- extract some more helpers