Fixed kwargs bug in __init__

now '.' is safely converted to '_', allowing getattr for keys imported at __init__.