Output "SyntaxError: Invalid syntax" when using repo init

I’m currently following this guide: OpenEmbedded (core) - Toradex System/Computer on Modules

My Current steps in here:

My error output:

I followed everything and all my dependencies followed the YOCTO manual.

OK, so i found the problem and my solution.

When i go check my default python version using “python --version” it shows that its 2.7.x
I followed this to make 3.6 my default version and now it works.