Fixed a bug with the reloader on Python 3