Add a simple command line client, and make testlib python3 capable
Fix payments when you pay yourself