began rewriting pendulum.py

also, i was able to pinpoint the problem of the original pendulum.py to
the animation loop section
put everything into folders