Output "SyntaxError: Invalid syntax" when using repo init

I’m currently following this guide: Build a Reference Image with Yocto Project/OpenEmbedded | Toradex Developer Center

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.