log python warnings and enabled deprecation warnings