Some random python codes.