Python Format Execute Function In Python