kinda pythonified