I *think* this may be fixed by replacing the following line:
public function calculate_shipping( $package ) {
with
public function calculate_shipping( $package = array() ) {
In the plugin file class-shipping-usps.php.
The php errors go away and the shipping costs seem to look OK in the cart.