Added various new functionality.

All working except the new_python_file console script.