xbrl extract code using Python