Updated library imports.
bytes vs str handling.
More bytes vs str handling.