Some good practices for writing python code