the seal would have to be slippery to allow the air balls movement into the tank, then the seal needs to close up after each ball for it not to leak, but other than that you get a slow, infinite source of electricity.
there could also be a low power usage electric motor to assist the pulley system to produce more electricity. but it would work.