Python code for the 2012 student robotics competition