Line Based Programming Python