two = datetime.datetime(2010, 3, 12, 2, 0)
for date in [(two + datetime.timedelta(days=i)) for i in range(-7, 8)]:
    result = following_friday(date)
print('{0}-->{1}'.format(date, result))
How to calculate next Friday at 3am?