Fixed session confirmation bug. Paired by Michael and Richard.

 There was a bug that in every second run, with which the user would be redirected back to the beginning of the pattern creation process. This has been fixed with proper use of Python3, as well as much testing and many patterns saved to the server-side database.(Feature #140)