'Convert the command line arg into a course key'

def course_key_from_arg(self, arg):

    try:
        return CourseKey.from_string(arg)
    except InvalidKeyError:
        return SlashSeparatedCourseKey.from_deprecated_string(arg)
