[chirp_devel] [py3] some fixes to get chirpw running with python3, Fixes #7431