python attrs cfg + python3 porting; not tested