remove unnecessary lines from R plot, make more things variables in python file