TST: attribute lookup on datetime.datetime (same name) was failing due to scope issues