[backends/pycommon] Remove unused ids
[backends/pycommon] Do not increase range for location
wip