Remove unused import, wrap server calls in bytes() and str()