Added copyright messages to python files in core.