how to create a robot in python