Added Python solution