Added python mode and flake