Fix deprecation warnings, releasing 0.4.1