Added filetype to statepoint.py and fixed revision and k_generation.