/usr/lib/x86_64-linux-gnu/libpython3.5dm.a is in libpython3.5-dbg 3.5.3-1+deb9u1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/x86_64-linux-gnu/../python3.5/config-3.5dm-x86_64-linux-gnu/libpython3.5dm.a