Moved comments to beginning of indentation.
Added alternative import.
Try alternative import only if the previous attempt throws an ImportError, not for all errors.
Use different paths based on hostname.