Add timeout on python json xdr socket operations