add python compatibility

Signed-off-by: sthsieh <sthsieh@synology.com>