def b64c(b):
 return string.translate(b, B64C_TRANSLATE, B64C_STRIP)

def b64c ( b ) : return string . translate ( b , B64C_TRANSLATE , B64C_STRIP )
rewrite a base64 string: - remove lf and = characters - replace slashes by underscores .