code: def out(s):
      
  
      if allow_print: 
         if con_encoding=='':
            x=sys.stdin.encoding
            if x==None: 
               b=s.encode()
            else:
               b=s.encode(x, 'ignore')
         else:
            b=s.encode(con_encoding, 'ignore')
  
         if sys.version_info[0]>2:
            try: # We encountered issues on ipython with Anaconda
                 # and hence made this work around
               sys.stdout.buffer.write(b)
               sys.stdout.buffer.write(b'\n')
            except Exception as e: 
               print(s)
               pass
         else:
            print(b)
  
      sys.stdout.flush()
  
      return None
docs: Input:  s - unicode string to print
  
      Output: Nothing