def setHeader(package_path,<EOL>header_start='<STR_LIT>', header_end='<STR_LIT>', header_text='<STR_LIT>',<EOL>remove_header=False,<EOL>exclude_init=True, exclude_empty_files=True):
pkg_name = os.path.split(package_path)[-<NUM_LIT:1>]<EOL>if not os.path.exists(package_path):<EOL><INDENT>Exception("<STR_LIT>" % package_path)<EOL><DEDENT>py_files = _findPyFiles(package_path, exclude_init)<EOL>print('<STR_LIT>' % (len(py_files), pkg_name))<EOL>for path in py_files:<EOL><INDENT>print(path)<EOL>_setHeaderInPyFile(path, header_start, header_text,<EOL>header_end, remove_header, exclude_empty_files)<EOL><DEDENT>print('<STR_LIT>')<EOL>
Adds, modifies removes a header text in all *.py files in a python package

header_start -> string indicating the begin of the header e.g. '#<<<<<<<<<'
header_text -> the header text e.g. '#copyright John Doe 2033\n#licensed under GPLv3'
header_end -> string indicating the end of the header e.g. '#>>>>>>>>>'

package_path -> relative or absolute path of the package to modify e.g. 'C:\\...\\myPackage'
remove_header -> Set to True to remove the header in every py file in the package