Python Copy A Function On A Graph