Importing distance more pythonic.

The distance module was importated with some not standard mechanism and it was impossible
to make it worky with pyinstaller. This patch uses the standard python method import
and than pymc can be also used with pyinstaller.