Time Complexities In Python