Python code for various projects