added python solution for problem 1
removed unneccessary paranthesis