[minor] clear pyc files, use val instead of opts in wnf functions