Toggle Anotation module on/off with python

Hi folks,
i would like to toggle Anotation module on/off with python.
As if i am pressing ‘F10’

any help will be appreciated.
thanks.