'Mario collisions with coin boxes on the y-axis'

def adjust_mario_for_y_coin_box_collisions(self, coin_box):

    if (self.mario.rect.y > coin_box.rect.y):
        if (coin_box.state == c.RESTING):
            if (coin_box.contents == c.COIN):
                self.game_info[c.SCORE] += 200
                coin_box.start_bump(self.moving_score_list)
                if (coin_box.contents == c.COIN):
                    self.game_info[c.COIN_TOTAL] += 1
            else:
                coin_box.start_bump(self.moving_score_list)
        elif (coin_box.state == c.OPENED):
            pass
        setup.SFX['bump'].play()
        self.mario.y_vel = 7
        self.mario.rect.y = coin_box.rect.bottom
        self.mario.state = c.FALL
    else:
        self.mario.y_vel = 0
        self.mario.rect.bottom = coin_box.rect.top
        self.mario.state = c.WALK
