code: def check_pdb_status(pdbid):
      
      url = 'http://www.rcsb.org/pdb/rest/idStatus?structureId=%s' % pdbid
      xmlf = urlopen(url)
      xml = et.parse(xmlf)
      xmlf.close()
      status = None
      current_pdbid = pdbid
      for df in xml.xpath('//record'):
          status = df.attrib['status']  # Status of an entry can be either 'UNKWOWN', 'OBSOLETE', or 'CURRENT'
          if status == 'OBSOLETE':
              current_pdbid = df.attrib['replacedBy']  # Contains the up-to-date PDB ID for obsolete entries
      return [status, current_pdbid.lower()]
docs: Returns the status and up-to-date entry in the PDB for a given PDB ID