def record (leap_receiver): print_notification ('Hit <enter> to start recording, <enter> again to stop') recorder = Recorder (leap_receiver) raw_input () print "==========[ START RECORDING ]==========" recorder.start () raw_input () print "==========[ RECORDING COMPLETE ]==========" recorder.stop () return recorder.get_motion_sequence ()