Add python solution for Q001