some random codes in python