Do you consider that the host_mountpoint maybe a file in the host?
If so the makedirs() will failed with error message.