Create and manage machines with python