imports streamlined. strings use python3 .format() rather than %s or += as much as possible.