def build_hit_qualifications(self, approve_requirement, restrict_to_usa, blacklist):
quals = [<EOL>{<EOL>"<STR_LIT>": PERCENTAGE_APPROVED_REQUIREMENT_ID,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": [approve_requirement],<EOL>"<STR_LIT>": True,<EOL>}<EOL>]<EOL>if restrict_to_usa:<EOL><INDENT>quals.append(<EOL>{<EOL>"<STR_LIT>": LOCALE_REQUIREMENT_ID,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": [{"<STR_LIT>": "<STR_LIT>"}],<EOL>"<STR_LIT>": True,<EOL>}<EOL>)<EOL><DEDENT>if blacklist is not None:<EOL><INDENT>for item in blacklist:<EOL><INDENT>qtype = self.get_qualification_type_by_name(item)<EOL>if qtype:<EOL><INDENT>quals.append(<EOL>{<EOL>"<STR_LIT>": qtype["<STR_LIT:id>"],<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": True,<EOL>}<EOL>)<EOL><DEDENT><DEDENT><DEDENT>return quals<EOL>
Translate restrictions/qualifications to boto Qualifications objects

        @blacklist is a list of names for Qualifications workers must
        not already hold in order to see and accept the HIT.