fixed tests

remove pyc and pycache

(cherry picked from commit c78cf766ff232356133978daa679cbb5c5e93e9a)
Merge remote-tracking branch 'origin/139' into 139