ls() includes a type flag, which lets you find scene nodes of a particular type. For example:
cameras = cmds.ls(type='camera')
// [u'topShape', u'sideShape', u'perspShape', u'frontShape']
You can search for multiple types in the same call:
geometry = cmds.ls(type=('mesh', 'nurbsCurve', 'nu...