Any good open source automation software?

I am looking for a good free and open source automation software like Asoftech’s Automation http://www.asoftech.com/articles/mouse-keyboard-record-repeat.html

It needs to be able to do these things:

  • Record and edit/re-time keyboard key presses, mouse clicks and mouse movements
  • Save recorded automations
  • Activate automations using hotkeys

Anyone here know of any?