Many of those countries don't treat drugs anywhere near like the way the US does.
Switzerland in fact has a system very similar to what is described in this article. Methadone (and even in some cases heroin) is readily dispensed to those in need. You aren't going to end up with a 10 year sentence for possessing hard drugs, you'll be helped.