How To Take Input In Python For Nested List