Python code and some tables