modularized IBridgePy and separated barBased program and tickBased program