The more conventional way to do this is to use the `\` as a line continuation:

     from course_groups.tests.modulestore_config import TEST_DATA_DIR, \
        TEST_DATA_XML_MODULESTORE, TEST_DATA_MONGO_MODULESTORE, TEST_DATA_DRAFT_MONGO_MODULESTORE