Fixed if statement, removed python3-matplotlib.