def validate_project(project_name):
if '<STR_LIT:->' in project_name:<EOL><INDENT>return None<EOL><DEDENT>if keyword.iskeyword(project_name):<EOL><INDENT>return None<EOL><DEDENT>if project_name in dir(__builtins__):<EOL><INDENT>return None<EOL><DEDENT>try:<EOL><INDENT>__import__(project_name)<EOL>return None<EOL><DEDENT>except ImportError:<EOL><INDENT>return project_name<EOL><DEDENT>
Check the defined project name against keywords, builtins and existing
modules to avoid name clashing