Learning python

would I be able to simulate mouse clicks and button presses?