Subtract a week or month from a given date using Python

Please guide me to do date manipulation in python such as add/subtract day/week/month from the current date.

Something like NOW() - 1 in excel yields yesterday's date, how can this be achieved in python program?