Major commit: add apache licencse, prepend header to all our python files

Still need to fill in copyrights
Add the missing header for headerspace