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

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

Conflicts:
	code/brytongps.py
Fix error