def headleft():
  i01.setHeadSpeed(0.6,0.6)
  i01.head.rothead.attach()
  sleep(0.5)
  i01.head.rothead.moveTo(180)
  sleep(1)
  i01.head.rothead.detach()