I have read there are three ways for coding multi-line imports in python
With slashes:
from Tkinter import Tk, Frame, Button, Entry, Canvas, Text, \\
I would go with the parenthesis notation from the PEP328 with newlines added before and after parentheses:
from Tkinter import (
Tk, Frame, Button, Entry, Canvas, Text,
LEFT, DISABLED, NORMAL, RIDGE, END
)
This is the format which Django uses:
from django.test.client import Client, RequestFactory
from django.test.testcases import (
LiveServerTestCase, SimpleTestCase, TestCase, TransactionTestCase,
skipIfDBFeature, skipUnlessAnyDBFeature, skipUnlessDBFeature,
)
from django.test.utils import (
ignore_warnings, modify_settings, override_settings,
override_system_checks, tag,
)