Added sanit_is_jid test and fixed the method
Fixed some pylint warnings