updated pandaseq.py and test code according to code review comments