Adjust MSAA with python

Hey, is it possible to adjust the Anti Aliasing with python? I’m working on a settings page, and an AA adjustment setting is all that’s left.

Thanks!