1.I forget I am not using python or javascript =P
1.There was a bracing issue I personally find it hard to follow braces that are no symmetric or broken.
2.Tested creating the core profile and it works detected that I created core profile Opengl 3.2.
3.Now testing by making it fail detection for 3.2 and see if it reverts to Opengl 2.1 Profile.