Python code for Lego Hexbugs racing control