Import once

Import files once as proposed by @ysor in issue #396.