Use python format_string
Removed unused imports