This is not valid.  `datetime` is a module which contains an object `datetime` which has a class method `now`.

I think this would work:

    from datetime import datetime
    now = datetime.now