Mel to Python Help

I am trying to control shade mode in the viewport in maya but I can't seem to figure out how to convert this mel to python. Any suggestions?

Mel:
modelEditor -edit -displayAppearance smoothShaded -activeOnly false modelPanel4;

Something like:
mc.modelEditor(edit=True, panel='modelPanel4', displayAppearance="smoothShaded", activeOnly=False)

Any help would be much appreciated.

mc.modelEditor('modelPanel4',edit=True, displayAppearance="smoothShaded", activeOnly=False)

Named items come first in mel and list later, in python they come the other way around.