Some more work.
PyDy script ready for debugging.
Moved segment class into its own file.