avoid dangerous code duplication runtime/build time

comes at the cost of making sure to have no "from obspy .." imports in
the files used at installation time (currently version.py and misc.py in
core.util)