py-param: Add python interface to get server_role