Fix tmux interface.
Refactor: split test.py into several smaller files.