Make LocationWidget Python3 compatible