I would like to get the most recent `datetime` of a `weekday()` index in Python. How could I do this?

**Example:**
Let's say today is Wednesday 02/09 (`weekday` index 2). Input `0` would give me `datetime` of last Tuesday, which is 02/07. `3` would give me `datetime` of last Thursday, which would be 02/03.