uploadr.py for python 3