python 3 conversion
added tests
added old files