Ignore __pycache__ folder.
Remove unused import.
Fix compilation on VS2012.