edited list.py, going to rewrite with regular expressions soon