set default encoding to UTF8 and add a few try/except to avoid UnicodeEncodeError, check some path exists before extraction, str PortNumber value, probable typo for zip file target else it is an unexisting path