Writing Python Code Within A Provided