Not sure if this helps, but importing both urwid, and torch produces this error on my system (pytorch version 0.4.1.post2; urwid version 2.0.1).
import urwid
import torch

crashes with the following message
terminate called after throwing an instance of 'std::runtime_error'
  what():  expected ) but found 'ident' here:
aten::_addmv(Tensor self, Tensor mat, Tensor vec, *, Scalar beta=1, Scalar alpha=1) -> Tensor
                                                                    ~~~~~~ <--- HERE

Aborted (core dumped)