Set copyright/license information in .py files

Also remove unneeded shebangs and encoding information.

Change-Id: I619f54d1c92653939f668a95456c23b2c70edb9a