some random python codes