[PATCH 3/3] python: add read lockspace and resource