Cleaned pulsar.py and pulse.py

I have still not tested them yet