i.e.
def main():
notes_director = argv[1]
chdir(notes_director)
files = glob('*.txt')
rand_file = choice(files)
with open(rand_file) as notes_file:
points = notes_file.readlines()
rand_point = choice(points)
# actually call the main function
main()
https://softwareengineering.stackexchange.com/questions/342374/should-i-really-use-all-uppercase-for-my-constants
i.e.
https://softwareengineering.stackexchange.com/questions/342374/should-i-really-use-all-uppercase-for-my-constants