Is it possible to assign spacehandlers to a view via python?

I did not find anything in the docs. It is a pitty that you can to click through the menus agan each time you want to assign a space handler, and you have to do it for every layout seperately too. Is there any trick or function that i missed?