Fixed #5 #6 in twseno.py