Re-write the following Java program in Python.
public class HelloWorld {
public static void main(String[] args) {
 System.out.println("Hello World");
 }
}
def main():
 print("Hello World")
 
if __name__ == "__main__":
 main()