fix duplicate py.warnings errors