Python cheat sheet for competitive programming