Longest piece of python code for now