Create my_alg.py

sub fuction