Fix file() is obsolete function.
Add for compatible to Python2.6,2.7 and Python3.3.
Add __pycache__ to ignore.
Fix for compatible to Python2.6,2.7 and Python3.3.