cleaned up spacing and made python3 compatible