Here are a few things that stand out to me:
You import time but don't use it in your code. It should be removed
You should adhere to the PEP 8 style guide. This guide may seem a little superfluous, but having a consistent style makes your code easier to work with should you modify it and having your code follow the same style guide as ...