Rather than '+' on strings, I'd prefer a "'%s/%s...' % (...)" construct, which is more readable and more efficient.