How to script: modifier target object = selected object?

Hey guys,

I am coding some buttons for frequently used modifier stacks. I am really bad at coding and I need your help: How do you write in python that the target object of a modifier should be the selected object? Thank you in advance!