avoid 'from' import as much as possible
use open() as context manager whenever feasible

actually where is easier :)