Move code to remove dependency on py_sg when not needed
Merge branch 'master' into rider50

Conflicts:
	code/brytongps.py
Add export to JSON
Print messages to stderr
Don't exit after printing summaries
Merge branch 'master' into rider50

Conflicts:
	code/brytongps.py
Fix error