Xprofile Master Example 

import xprofile

# get profile (for api completion !)
print xprofile.get_ap()

# set active profile to "General Profile"
xprofile.set_ap(0)

# set active profile to "Silent Profile"
xprofile.set_ap(1)

# set active profile to "Meeting"
xprofile.set_ap(2)


# set active profile to "Offline"
xprofile.set_ap(5)


# set active profile to your first "user profile"
xprofile.set_ap(30)