Use Python's Logging Library to create logging infrastructure for mavctl. This would help make debugging much easier