Python version functional