some python notes and codes