Lets say it's a coma error:
myOut= cmds.outlinerPanel()
cmds.control(myOut, edit=True, parent="outlinerLayout")
Check out the Documentation:
Anyewy I would Highly suggest you to use PyMel instead of maya python, it's a better pythonic way to code in Maya. And also PYQT4 will make UI build up easier.