Import Python packages from folders with dotted names