Made Python 3 compatible.

Updated an import that caused errors when run on Python 3.