Futurized the Python code