code: def tableiswritable(tablename):
      
      result = True
      try:
          t = table(tablename, readonly=False, ack=False)
          result = t.iswritable()
      except:
          result = False
      return result
docs: Test if a table is writable.