updated pyas object for new header tags, added new functions