mydll.open()
call scanf. Why do you call scanf in Python?
Just call mydll.open()
only:
mydll.open()
UPDATE
#include <stdio.h>
void open(void)
{
char input[20];
printf("input = "); // If you want prompt
scanf("%s", input);
printf("\n%s\n", input);
}