The Proble was that the two lists pointed at the same value, so if one appends a value to one list, both are the same. Solved this by copying the list for the second one. It also returned the negative difference between the means. This is solved by using the absolute value of the difference.