This module contains code to initialize the Maya Python package. This initialization isn't strictly required for the Maya Python package to work but it adds some useful hooks to Maya. The initialization is invoked just by importing the module. For example, in the (MEL) Script Editor you could type the following:
py "import maya.initmaya";
The initialization will perform the following actions:
PythonEditor
is defined and a new menu item Window General Editors Python Editor... is created
PyPluginManager
is defined and a new menu item Window Settings/Preferences Python Plug-in manager... is created