add CBB520 Python code