fixed rwanalysis.py again (?) to work with very short number of lines, probably one line