Still in proccess of improving lyapunov.py