Raise ValueError for truncated LEB128 values
Fix Python 2.6 compatibility in str.format() calls