Adding Octave code(python for creating submission file)

As I encountered difficulties trying to create submission file in Octave
I exported calculated theta parameters as Matlab file and imported it
into python to finish the work