Python complexity cheat sheet