Not exactly but I am aware of Python code for nonlinear optimization
algorithms. Check the nlpy project at
http://nlpy.sf.net It is
specifically targeted at finite-dimensional problems. However the
current trend in optimal control algorithms is to use grid-refinement
and iteratively solve finite-dimensional problems. You may thus find
nlpy useful. The missing part is the collocation/discretization part.
That may be available some place else.
Similarly, SciPy has some optimization algorithms ready for use but, as
far as I know, nothing for control.
Good luck,
Dominique