Clean-up authors and contributors list and put them into AUTHORS file
Put testing code into it's own function to prevent variable leakages
Add Python 3 compatibility