Update code.py

a function refineSts added , in this function statements are refined from Sen- tags and also any AM- other than the list mention is removed.
ttl format is also changed in makeOtherFormats