Update extractunitypackage.py

Added support for python 3.
Now works on both versions.