Python Order Of Functions