fix import issue and return bytes, not unicode