[PATCH] import time library, fixes NameError Exception