{
	"name": "python",
	"version": "0.1.0",
	"publisher": "vscode",
	"engines": { "vscode": "*" },
	"contributes": {
		"languages": [{
			"id": "python",
			"extensions": [ ".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi" ],
			"aliases": [ "Python", "py" ],
			"firstLine": "^#!/.*\\bpython[0-9.-]*\\b",
			"configuration": "./python.configuration.json"
		}],
		"grammars": [{
			"language": "python",
			"scopeName": "source.python",
			"path": "./syntaxes/Python.tmLanguage"
		},{
			"scopeName": "source.regexp.python",
			"path": "./syntaxes/Regular Expressions (Python).tmLanguage"
		}]
	}
}
{
	"name": "python",
	"version": "0.1.0",
	"publisher": "vscode",
	"engines": { "vscode": "*" },
	"contributes": {
		"languages": [{
			"id": "python",
			"extensions": [ ".py", ".rpy", ".pyw", ".cpy", ".gn", ".gyp", ".gypi" ],
			"aliases": [ "Python", "py" ],
			"firstLine": "^#!/.*\\bpython[0-9.-]*\\b",
			"configuration": "./python.configuration.json"
		}],
		"grammars": [{
			"language": "python",
			"scopeName": "source.python",
			"path": "./syntaxes/Python.tmLanguage"
		},{
			"scopeName": "source.regexp.python",
			"path": "./syntaxes/Regular Expressions (Python).tmLanguage"
		}]
	}
}

Add .gn as a python file extension
Add .gn as a python file extension

GN is a meta-build system that generates NinjaBuild files. GN syntax is a stripped down version of python.