GPLv2 removal and added AGPL to files

There were erroneous mentions to GPLv2 code, removed all of them and put AGPL headers in all .py files.