[PATCH 3/3] python: add get_lockspaces