make the code compatible with Python2 and Python3
fix the multiboard calibration test