Typos corrected and Copyright message added for .py files

A few typos have been corrected and all .py files now have the copyright
header. Follow up commits will have copyright header on .cc, .hh and .sh
file as well.