Fixes missing sys import when tlslie is not found.

This fixes a missing "import sys", and reformats the imports a little bit (removed unused imports, basically).